package com.victor.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.JingqubusinessShop;
import com.victor.entity.JingqubusinessShopclass;
@Mapper
public interface JingqubusinessShopDao {
    boolean deleteByPrimaryKey(int[] id);
    /**
     * 添加商品
     * @param record
     * @return
     */
    boolean insertSelective(JingqubusinessShop record);

    JingqubusinessShop selectByPrimaryKey(Integer id);

    boolean updateByPrimaryKeySelective(JingqubusinessShop record);

    int updateByPrimaryKey(JingqubusinessShop record);
    /**
     * 查询全部
     * @return
     */
    @Select({"select * from jingqubusinessshop where jbid=#{jbid}"})
	List<JingqubusinessShop> selAll(Integer jbid);
    /**
     * 根据条件查询
     * @param hashMap
     * @return
     */
	List<JingqubusinessShop> selByCondition(HashMap<Object, Object> hashMap);
	/**
	 * 根据商品类型id查询
	 * @param shopclassid 
	 * @return
	 */
	List<JingqubusinessShop> selAllShop(String[] shopclassid);
}